/* 根元素 */
.form {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    background: rgb(17, 17, 17);
    min-width: 400px;
}

/* 标题 */
.form h3 {
    position: relative;
    text-align: center;
    letter-spacing: 0.25em;
    color: rgb(0, 180, 0);
    font-weight: 800;
    font-size: 2em;
    text-shadow: rgb(0, 50, 0) 0 0 20px;
}

/* 表单 */
.form form {
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    width: 100%;
    height: 100%;
    flex: 1;
}

/* 子级div盒子 */
.form div {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 20px;
}

textarea.input_text {
    resize: none;
    height: 100%;
    overflow: auto;
    font-style: normal;
}

/*input输入框*/
.input_text {
    width: 100%;
    color: white;
    background: rgb(15, 15, 15);
    border: 1px transparent solid;
    box-shadow: inset 0 0 15px 1px rgb(10, 10, 10);
    font-style: oblique;
    letter-spacing: 0.15em;
    text-shadow: rgba(100, 100, 100) 0 0 20px;
}

.input_text~i {
    position: absolute;
    left: 8px;
    top: 10px;
    transform: translateY(0);
    pointer-events: none;
    color: rgb(130, 130, 130);
    text-shadow: rgba(30, 30, 30) 0 0 20px;
    font-size: 0.8em;
}

/* 鼠标指着input时的效果 */
.input_text:hover {
    border: 1px rgb(0, 20, 0) solid;
    box-shadow: inset 0 0 15px 1 rgb(0, 20, 0);
    text-shadow: rgba(150, 150, 150) 0 0 5px;
}

.input_text:hover~i {
    color: rgb(240, 240, 240);
    text-shadow: rgba(100, 100, 100) 0 0 5px;
}

/* 获取焦点和合法输入后input的变化 */
.input_text:focus {
    border: 1px rgb(0, 80, 0) solid;
    box-shadow: inset 0 0 15px 1px rgb(0, 80, 0);
    background: rgba(10, 10, 10);
}

/* 获取焦点和合法输入后i的变化 */
.input_text:valid~i,
.input_text:focus~i {
    transform: translateY(-120%);
    /* margin-bottom: 65px; */
    color: rgb(0, 180, 0);
    font-size: 1.2em;
    text-shadow: rgb(0, 50, 0) 0 0 20px;
    font-style: normal;
}

/* 按钮 */
.btn {
    display: block;
    width: 100%;
    background: rgba(17, 17, 17);
    color: white;
    letter-spacing: 0.5em;
    font-size: 1em;
    box-shadow: rgba(25, 25, 25) 0 0 15px 1px;
    cursor: pointer;
}

.btn:hover {
    box-shadow: rgba(35, 35, 35) 0 0 15px 2px;
    text-shadow: rgba(210, 210, 210) 0 0 15px;
    background: rgb(45, 45, 45);
}

.btn:active {
    box-shadow: rgb(30, 30, 30) 0 0px 15px 0;
    text-shadow: none;
    color: rgba(100, 100, 100);
    background: rgb(30, 30, 30);
    transition: .1s;
}

.btn[type="submit"] {
    box-shadow: rgb(0, 50, 0) 0 0 15px 1px;
    background: rgb(0, 180, 0);
}

.btn[type="submit"]:hover {
    box-shadow: rgb(0, 80, 0) 0 0px 15px 2px;
    text-shadow: rgba(210, 210, 210) 0 0 15px;
    background: rgb(0, 200, 0);
}

.btn[type="submit"]:active {
    box-shadow: rgb(0, 30, 0) 0 0px 15px 0;
    text-shadow: none;
    color: rgba(100, 100, 100);
    background: rgb(0, 50, 0);
    transition: .1s;
}

input[type="radio"] {
    width: 1em;
    height: 1em;
    cursor: pointer;
}

select {
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: rgb(30, 30, 30) 0 0px 15px 0;
    width: 90%;
    color: white;
    background: rgba(17, 17, 17);
    border: none;
}
select option {cursor: pointer;}
select:hover {
    box-shadow: rgba(35, 35, 35) 0 0 15px 2px;
    text-shadow: rgba(210, 210, 210) 0 0 15px;
    background: rgb(45, 45, 45);
}